<template>
	<view>
		<uni-table stripe emptyText="暂无更多数据">
			<uni-tr>
				<uni-th width="48px">序号</uni-th>
				<uni-th>原始单号</uni-th>
				<uni-th width="68px">微信回执单号</uni-th>
				<uni-th>退款渠道</uni-th>
				<uni-th>收款账户 </uni-th>
				<uni-th>退款时间</uni-th>
				<uni-th>状态</uni-th><uni-th>币种</uni-th>
				<uni-th>订单金额</uni-th>
				<uni-th>退款金额</uni-th>
				<uni-th>支付金额</uni-th>
				<uni-th>退款金额</uni-th>
				<uni-th>应结订单金额</uni-th>
				<uni-th>应结退款金额</uni-th>
				<uni-th>优惠退款金额</uni-th>
			</uni-tr>
			<uni-tr v-for="(item, index) in data" :key="index">
				<uni-td>{{index + 1}}</uni-td>
				<uni-td>{{item.out_trade_no}} </uni-td>
				<uni-td>{{item.refund_id}} </uni-td>
				<uni-td>{{item.channel}}</uni-td>
				<uni-td>{{item.user_received_account}}</uni-td>
				<uni-td>{{item.success_time}}</uni-td>
				<uni-td>{{item.status}}</uni-td>
				<uni-td>{{item.amount_currency}}</uni-td>

				<uni-td>{{(item.amount_total/100).toFixed(2)}}</uni-td>
				<uni-td>{{(item.amount_refund/100).toFixed(2)}}</uni-td>

				<uni-td>{{(item.amount_payer_total/100).toFixed(2)}}</uni-td>
				<uni-td>{{(item.amount_payer_refund/100).toFixed(2)}}</uni-td>

				<uni-td>{{(item.amount_settlement_total/100).toFixed(2)}}</uni-td>
				<uni-td>{{(item.amount_settlement_refund/100).toFixed(2)}}</uni-td>

				<uni-td>{{(item.amount_discount_refund/100).toFixed(2)}}</uni-td>

			</uni-tr>
		</uni-table>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				sConf: getApp().globalData
			}
		},
		props: {
			data: {
				type: Array,
				default: []
			}
		},
		methods: {

		}
	}
</script>

<style lang="scss" scoped>

</style>